<template>
	<div v-my-directive class="error">
		<el-empty>
			<el-button type="primary" @click="back">返回首页</el-button>
		</el-empty></div
	>
</template>

<script>
export default {
	name: 'name',

	components: {},
	data() {
		return {}
	},
	methods: {
		back() {
			// 在这里执行你的操作
			this.$router.back()
		},
	},
	mounted() {},
}
</script>
<style scoped>
.error {
	margin-top: 80px;
	margin-bottom: 100px;
}
</style>
